public class t3 {
    public static void main(String[] args) {
        int baseYear = 2024;
        int startYear = 1949;
        int endYear = 2049;


        for (int year = startYear; year <= endYear; year++) {

            int diff = year - baseYear;

            if (diff % 12 == 0) {
                System.out.println(year + " 年是龙年");
            }
        }
    }
}
